home *** CD-ROM | disk | FTP | other *** search
- /* #definitions to make life easier and C more readable */
-
- /* Inside Macintosh #defines not in MacTypes… */
- typedef short INTEGER;
- typedef long LONGINT;
-
- /* Constants */
- #define NULL 0L
-
- /* Logical Operators */
- #define NOT !
- #define AND &&
- #define OR ||
- #define MOD %
- #define EQ ==
- #define NEQ !=
- #define bAND &
- #define bOR |
- #define bXOR ^
-
- /* Misc Operators */
- #define SIZEOF(x) (long)sizeof(x)
-
- /* Math things */
- #define abs(x) (((x)<0)?-(x):(x))
-
- /* these are defined in LightSpeed's math.h
- #define PI 3.14159265358979323846
- #define E 2.71828182845904523536
- */
-
- /* special character codes… */
- #define CR 0x0D
- #define RETURN CR
- #define CLOVER 0x11
- #define TAB 0x09
- #define BS 0x08
- #define ENTER 0x03
- #define APPLE 0x14
- #define SPACE 0x20
- #define DIAMOND 0x13
-
-